home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
mc51bugs
/
q35807
< prev
next >
Wrap
Text File
|
1988-10-20
|
1KB
|
56 lines
Q35807 Internal Compiler Error in Code.c:1.46, Line 1113
C Compiler
5.00 5.10 | 5.10
MS-DOS | OS/2
Summary:
When compiled with any options, the code below produces the following
error under C Version 5.00:
fatal error C1001: Internal Compiler Error
(compiler file '@(#)code.c:1.43', line 1117)
Contact Microsoft Technical Support
Under C Version 5.10, the following error is generated:
fatal error C1001: Internal Compiler Error
(compiler file '@(#)code.c:1.46', line 1113)
Contact Microsoft Technical Support
Microsoft has confirmed this to be a problem in Versions 5.00 and
5.10. We are researching this problem and will post new information as
it becomes available.
The workaround to this problem is to use an if statement instead of
the conditional operator within the loop, as follows:
for(;;)
{
if( value == 1 )
printf( "value is 1\ n" );
else
d /= 2.0;
}
More Information:
The following code demonstrates the problem:
#include <stdio.h>
void main(void);
void main()
{
double d = 3.42;
int value = 1;
for(;;) /* Occurs with any loop i.e. do..while, while, or switch */
{
(value == 1 ) ? printf( "value is 1\n" ) : ( d /= 2.0 ) ;
}
}
Keywords: buglist5.00 buglist5.10
Updated 88/10/21 03:46